﻿@model GameSchoolWeb.Models.Question
<div id="templatemo_content">
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <div class="templatemo_box">
        <h2>
            Netpróf</h2>
        <div class="body">
            @using (Html.BeginForm())
            {
                @Html.ValidationSummary(true)
                <div class="editor-label">
                    <strong>Spurning</strong></div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.strTitle)
                    @Html.ValidationMessageFor(model => model.strTitle)
                </div>

                <div class="editor-label">
                    <strong>Valmöguleiki 1</strong></div>
                <div>
                    @Html.EditorFor(model => model.striOptionOne)
                    @Html.ValidationMessageFor(model => model.striOptionOne)
                </div>

                <div class="editor-label">
                    <strong>Valmöguleiki 2</strong></div>
                <div>
                    @Html.EditorFor(model => model.strOptionTwo)
                    @Html.ValidationMessageFor(model => model.strOptionTwo)
                </div>

                <div class="editor-label">
                    <strong>Valmöguleiki 3</strong></div>
                <div>
                    @Html.EditorFor(model => model.strOptionThree)
                    @Html.ValidationMessageFor(model => model.strOptionThree)
                </div>

                <div class="editor-label">
                    <strong>Valmöguleiki 4</strong></div>
                <div>
                    @Html.EditorFor(model => model.strOptionFour)
                    @Html.ValidationMessageFor(model => model.strOptionFour)
                </div>

                <div class="editor-label">
                    <strong>Valmöguleiki 5</strong></div>
                <div>
                    @Html.EditorFor(model => model.strOptionFive)
                    @Html.ValidationMessageFor(model => model.strOptionFive)
                </div>

                <div class="editor-label">
                    <strong>Rétt svar</strong></div>
                <div>
                    @Html.EditorFor(model => model.nCorrectOption)
                    @Html.ValidationMessageFor(model => model.nCorrectOption)
                </div>

                <p>
                    <input type="submit" value="Vista" />
                </p>
       
            }
            <hr />
            <div>
                @Html.ActionLink("Aftur á forsíðu", "Index")
            </div>
        </div>
        <div class="box_bottom">
            <span></span>
        </div>
    </div>
</div>
